import Layout from '@/layout'

/*
题库管理路由
*/
const QuestionManageRouter = [{
    path: '/questionManage',
    name: 'questionManage',
    component: Layout,
    redirect: './list',
    meta: { title: '题库管理', icon: 'questionManage' },
    children: [{
            path: 'list',
            name: 'questionList',
            component: () =>
                import ('./index.vue'),
            meta: { title: '题库列表' }
        },
        {
            path: 'edit',
            name: 'questionEdit',
            hidden: true,
            component: () =>
                import ('./Edit.vue'),
            meta: { title: '编辑试卷' }
        },
        {
            path: 'add',
            name: 'questionAdd',
            hidden: true,
            component: () =>
                import ('./Edit.vue'),
            meta: { title: '添加试卷' }
        },
        {
            path: 'detail',
            name: 'questionDetail',
            hidden: true,
            component: () =>
                import ('./Edit.vue'),
            meta: { title: '试卷详情' }
        }
    ]
}]

export default QuestionManageRouter